
package com.entity;

import java.util.List;

public class PageBean<T> {
	   
	    //总记录数
		private int totalCount;
		//总页数
		private int totalPage;
		//当前页
		private int pageCode;
		//每页显示的记录数
		private static int pageSize=8;
		
		private List<T> beanList;
	
	public int getTotalPage(){
		return (int)Math.ceil(totalCount*1.0/pageSize);
	}
	

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public int getPageCode() {
		return pageCode;
	}

	public void setPageCode(int pageCode) {
		this.pageCode = pageCode;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public List<T> getBeanList() {
		return beanList;
	}

	public void setBeanList(List<T> beanList) {
		this.beanList = beanList;
	}
	
	
	
}
